package com.mike.employment.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.mike.employment.base.ApiResult;
import com.mike.employment.service.CompanyService;
import com.mike.employment.vo.CompanyVo;

@RestController
@RequestMapping("/api/company")
public class CompanyController {
	
	@Autowired
	private CompanyService companyService;
	
	@PutMapping()
	public ApiResult updateCompany(@RequestBody CompanyVo vo) {
		return ApiResult.success(companyService.updateInfo(vo));
	}

}
